<template>
  <div>
    <el-dialog
      :visible.sync="showDialog"
      append-to-body
      destroy-on-close="true"
      :close-on-click-modal="false"
      @close="close"
      width="50%"
    >
      <el-input
        type="textarea"
        :rows="2"
        placeholder="暂无说明"
        disabled="true"
        v-model="textarea"
      >
      </el-input>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: "detailview",
  props: {
    viewData: "",
  },
  data() {
    return {
      showDialog: false,
      callback: () => {},
      loading: false,
      textarea: "",
    };
  },
  watch: {
    viewData() {
      this.textarea = this.viewData;
    },
  },
  computed: {},
  methods: {
    open(id, { callback }) {
      this.callback = callback;
      this.showDialog = true;
    },
    close() {
      this.showDialog = false;
    },
  },
};
</script>

<style></style>
